package com.tarena.lbs.attach.mapper;

import com.tarena.lbs.attach.entity.AttachFile;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface AttachFileMapper {
    int insert(AttachFile attachFile);
    AttachFile selectByFileId(String fileId);
    int deleteByFileId(String fileId);
    int bindFileToEntity(String fileId, String entityType, Long entityId);
    List<AttachFile> selectExpiredFiles(LocalDateTime now);
}
